package ro.sobis.repetor;

import java.net.Socket;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@SuppressWarnings("unused")
public class Repetor {

	private Log log = LogFactory.getLog(Repetor.class);
	private static Map<String, Socket>clienti=Collections.synchronizedMap(new HashMap<String, Socket>());
	private ServerClienti serverClienti;
	private ServerSuporteri serverSuporteri;
	
	
	public static Map<String, Socket> getClienti()
	{
		return clienti;
	}
	
	public Repetor()
	{
		try{
		
		serverClienti = new ServerClienti();
		serverSuporteri = new ServerSuporteri();
		log.info("Serverul repetor a pornit");
		
		}catch(Exception e)
		{
			log.error(e.getMessage());
		}
	}
	
	
	public static void main(String[] args) {
	
		new Repetor();
	}

}
